package com.net.xpay.common.manager.impl;

import com.net.common.dao.BasicMapper;
import com.net.xpay.common.dao.SiteConfigMapper;
import com.net.xpay.common.domain.SiteConfig;
import com.net.xpay.common.manager.SiteConfigManager;
import com.net.common.manager.AbstractManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;


@Component
public class SiteConfigManagerImpl extends AbstractManager<SiteConfig> implements SiteConfigManager{

    @Autowired
    private SiteConfigMapper mapper;


    @Override
    protected BasicMapper<Long, SiteConfig> getMapper() {
        return mapper;
    }

    @Override
    public List<SiteConfig> listAll() {
        return listByCondition(new SiteConfig(),new ArrayList<>());
    }
}
